projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab660b3
)
Allow elapsed time to go negative so that NMEA line reader can detect
author
robertl
<robertl>
Thu, 2 Nov 2006 19:15:48 +0000
(19:15 +0000)
committer
robertl
<robertl>
Thu, 2 Nov 2006 19:15:48 +0000
(19:15 +0000)
timeouts correctly.
gbser_posix.c
patch
|
blob
|
history
diff --git
a/gbser_posix.c
b/gbser_posix.c
index afbc5ba6666e9736082c25c684b5447d3b9f3b6c..6e398c13f5f18c28d370e6ebb5a030f351d3aafe 100644
(file)
--- a/
gbser_posix.c
+++ b/
gbser_posix.c
@@
-404,8
+404,9
@@
int gbser_read_line(void *handle, void *buf,
get_time(&tv);
bp[pos] = '\0';
for (;;) {
-
un
signed time_left = ms - elapsed(&tv);
+ signed time_left = ms - elapsed(&tv);
int c;
+
if (time_left <= 0) {
return gbser_TIMEOUT;
}